package com.asiainfo.complier.common;

import com.asiainfo.complier.helper.FileHelper;
import com.asiainfo.complier.helper.StringHelper;

public class CodeInfo {

	private String filePath;

	/**
	 * @return the filePath
	 */
	public String getFilePath() {
		return filePath;
	}

	/**
	 * @param filePath
	 *            the filePath to set
	 */
	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public String toString() {
		if (!StringHelper.isNullOrEmpty(filePath))
			return FileHelper.getFileName(filePath);
		return "untited.java";

	}

	private boolean isModify;

	/**
	 * @return the isModify
	 */
	public boolean isModify() {
		return isModify;
	}

	/**
	 * @param isModify
	 *            the isModify to set
	 */
	public void setModify(boolean isModify) {
		this.isModify = isModify;
	}

}
